<template>
    <div>
        <van-nav-bar title="健康商城" left-text="返回" left-arrow @click-left="$router.go(-1)" />
        <input type="text" v-bind="value" @input="data"  placeholder="请输入内容">
        <p>{{ value1}}</p>
    </div>
</template>
<script setup>
    import { ref } from 'vue'
// 双向数据绑定v-bind
    const value = ref('')
    const value1=ref('')
  const data=(event)=>{
    value1.value=event.target.value
    }
</script>